package com.common;

/**
 * @author ben.huang
 */
public class MyException extends RuntimeException{
    String code;

    public MyException(){
    }

    public MyException(String msg){
        super(msg);
        this.code= null;
    }
    public MyException(String msg,String code){
        super(msg);
        this.code = code;
    }

    public MyException(String msg,String code,Throwable e){
        super(msg,e);
        this.code = code;
    }
    public String getCode(){
        return code;
    }

    public void setCode(String code){
        this.code = code;
    }
}
